package tedu.cn.submarine;

import javax.swing.ImageIcon;

public class Bomb extends SeaObject {
    public Bomb(int x,int y){
        super(25,25,x,y,3);
    }

    public ImageIcon getImage(){
        return Images.bomb;
    }

    public void move(){
        setY(getY()+getSpeed());
    }

    public boolean isOutOfBounds(){
        return getY() >= World.HEIGHT;
    }
}
